const defaultState = {
    findRoomList:[],
    searchRoomList:[]
}

const findRooms = (state = defaultState, action) => {
    // const { payload } = action;
    switch (action.type) {
        // case "GETROOMLIST":
        //     return {
        //         ...state,
        //         findRoomList:payload
        //     }
        // case "GET_SEARCHROOM":
        //     const result = state.findRoomList.filter(item=>item.area.includes(payload));
        //     return {
        //         ...state,
        //         findRoomList:result
        //     }
        default:
            return {
                ...state
            }
    }
}
export default findRooms; 